package com.base.config;

import org.apache.cxf.Bus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.base.service.ProductService;

/**
 *  WebService配置 
 * @ClassName: CxfPushConfig
 * @Description: 
 * @Author xuyou
 * @DateTime 2019年11月21日 上午9:46:04
 */
@Configuration
public class CxfPushConfig {

	@Autowired
    private Bus bus;
	
	@Autowired
	ProductService productService;
	
	@Bean
    public EndpointImpl customerDataEndPoint() {
        EndpointImpl endpoint = new EndpointImpl(bus, productService);
        endpoint.publish("/pushProductData");
        return endpoint;
    }
	
}
